package com.czbank.financing.service.impl;

import com.czbank.financing.Entity.Power;
import com.czbank.financing.mapper.PowerMapper;
import com.czbank.financing.service.PowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @Auther: thinkpad
 * @Date: 2019/7/13 02:09
 * @Description:
 */
@Service
public class PowerServiceImpl implements PowerService {
    @Autowired
    private PowerMapper powerMapper;
    @Override
    public Power SelectPowerInfo(int pid) {
        return powerMapper.findPowerInfo(pid);
    }

    @Override
    public int UpdatePowerInfo(int pid, int powerType) {
        return powerMapper.UpdatePowerInfo(pid,powerType );
    }

    @Override
    public int InsertPowerInfo(int powerType, Date creationtime) {
        return powerMapper.InsertPPowerInfo(powerType, creationtime);
    }

    @Override
    public int DeletePowerInfo(int pid) {
        return powerMapper.DeletePowerInfo(pid);
    }
}
